package com.lh.service.impl;

import com.lh.dao.ImageDao;
import com.lh.entity.Image;
import com.lh.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: LuoHang
 * @Date: 2023/2/20 20:53
 * @Description
 */
@Service
public class ImageServiceImpl implements ImageService {
    @Autowired
    private ImageDao imageDao;

    @Override
    public int upload(Image image) {
        return imageDao.upload(image);
    }

    @Override
    public List<Image> getImagesByMap(Map<String, Integer> map) {
        return imageDao.getImagesByMap(map);
    }

    @Override
    public int updateImgByMap(Map<String, Object> map) {
        return imageDao.updateImgByMap(map);
    }
}
